package com.rabbiter.pm.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Accident {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 时间
     */
    private LocalDateTime accidentTime;
    /**
     * 地点
     */
    private String place;
    /**
     * 用户id
     */
    private Integer uid;
    /**
     * 车辆id
     */
    private Integer tid;
    /**
     * 处理结果
     */
    private String handleRes;
    /**
     * 处理是否成功
     */

    private String isSuccess;
    /**
     * 事故原因
     */

    private String accidentRes;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Car car;

}
